

from enum import Enum
from typing import Literal, Tuple
import logging


ErrCodes = Literal['', '411', '401', '422']

LOG_LEVELS = {
    'INFO': logging.INFO,
    'DEBUG': logging.DEBUG,
    'ERROR': logging.ERROR
}

'''
class ErrTypes(Enum):
    #bad_request = dict({'code': 4000, 'msg': '客户端请求异常'})
    unknow_error = ('9999', '未知错误')
    bad_request = ('4000', '客户端请求异常')
    validation_error = ('4022', '参数校验错误')
    params_error = ('4011', '参数未知错误')
    
'''
